# sjy.ps1

# 获取命令行参数
$param = $args[0]

# 设置脚本路径
$script1 = ".tools/up.ps1"
$script2 = ".tools/uedev_mlscript.ps1"
$script3 = ".tools/quickup.ps1"


# 条件判断和调用脚本
if ([string]::IsNullOrEmpty($param)) {
    Write-Output "Running: $script1"
    & $script1
} elseif ($param -eq "up") {
    Write-Output "Running: $script1"
    & $script1
} elseif ($param -eq "catalog") {
    Write-Output "Running: $script2"
    & $script2
} elseif ($param -eq "qup") {
    Write-Output "Running: $script2"
    & $script2
    Write-Output "Running: $script3"
    & $script3
} else {
    Write-Output "Unknown parameter: $param"
}